<template>
	<section>
		<div style="height: 100%;">
			<iframe src="http://192.168.72.154:8081/naotu/index.html" width="100%" height="1200px"></iframe>
		</div>
	</section>
</template>
<script>
	import axios from 'axios';

	export default{
		data(){
			return{
				url:'http://192.168.72.154:8081/naotu/index.html',
				html:""
			}
		},
		watch:{
			'html':function(){
				this.load(this.url)
			}
		},
		methods:{		
		   load (url){
		    if (url && url.length > 0) {
		     // 加载中   
		     let param = {
		      accept: 'text/html, text/plain'
		     }
		    $.ajax({
		     	type:"get",
		     	accept: 'text/html, text/plain',
		     	url:url,
		     	success:function(response){
			      // 处理HTML显示

	     		  this.html = response
	     		  console.log( this.html)
		     	}
		     })
		    }
		   }			
		},
		created(){
			this.load(this.url)		
		}
	}
</script>

<style scoped src='../../../static/css/all.css'>
</style>